package com.empirisoftware.logging;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;

import com.google.inject.Inject;

public class TraceLoggerInterceptor implements MethodInterceptor {
	@Inject
	private static Log log;
	
	public TraceLoggerInterceptor () {
	
	}
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		TraceLoggerInterceptor.log.trace(invocation.getMethod().toGenericString());
		return invocation.proceed();
	}
}
